import { DBMail } from "./DBMail";

class MailSystem {
    sendMail(from: string, to: string, title: string, content: string) {
        DBMail.insterNewMail(from, to, title, content);
    }

    deleteMail(mailId: number) {

    }

    markAsRead(mailId: number) {
        DBMail.markAsRead(mailId);
    }

    cleanMails(uid: string) {
        DBMail.clearMailsByUid(uid);
    }
}

const mailSystem = new MailSystem();
export { mailSystem };